import 'package:flutter/material.dart';

///@ClassName: TextHelp
/// @Author: guoyangyang
///@Date: 2022 1/28/22 4:27 PM
///@Description: 

const double scale = 5;
const double maxWidth_printer = 75 * scale;
const double maxHeight_printer = 105 * scale;

const double minWidth = 10;
const mTextDirection = TextDirection.ltr;
const mTextWidthBasis = TextWidthBasis.longestLine;

class TextDraw extends TextPainter {
  TextDraw(
      {InlineSpan? text,
        TextWidthBasis? textWidthBasis = mTextWidthBasis,
        TextDirection? textDirection = mTextDirection})
      : super(
      text: text,
      textWidthBasis: mTextWidthBasis,
      textDirection: mTextDirection);
}

///自定义的 TextStyle
class TextSize extends TextStyle {
  TextSize({Color? mColor = Colors.black, double? mFontSize})
      : super(color: mColor, fontSize: mFontSize);
}